package com.neusoft.nep.grid.caluate;



public class CaluateSO2AQI {

    public static  int caluateSO2AQI(int SO2) {
        int SO2AQI = 0;
        if (SO2 >= 0 && SO2 <= 50) {
            SO2AQI = 1;
        }
        else if (SO2 >= 50 && SO2 <= 150) {
            SO2AQI=2;
        }else if (SO2 >= 151 && SO2 <= 475) {
            SO2AQI=3;
        }else if (SO2 >= 476 && SO2 <= 800) {
            SO2AQI=4;
        }else if (SO2 >= 801&& SO2 <= 1600) {
            SO2AQI=5;
        }else if (SO2 >= 1601 ) {
            SO2AQI=6;
        }
        return SO2AQI;
    }

}

